package cn.com.wms.Base;

import java.util.ArrayList;
import java.util.List;


/**
 * ClassName: FilterInfo 
 * @Description: TODO 该类封装了页面传过来的查询条件,排序条件,分组条件等
 * @author chj
 * @date 2017年5月24日
 */
public class FilterInfo {
	private List<FilterItem> filters = new ArrayList<FilterItem>();
	private List<Sorter> sorters = new ArrayList<Sorter>();
	private List<Group> groups = new ArrayList<Group>();
	private String databaseType;
	public String getDatabaseType() {
		return databaseType;
	}
	public void setDatabaseType(String databaseType) {
		this.databaseType = databaseType;
	}
	public void addFilterItem(FilterItem filterItem){
		filters.add(filterItem);
	}
	public List<FilterItem> getAllFilterItems(){
		return filters;
	}
	
	public void addSorter(Sorter sorter){
		sorters.add(sorter);
	}
	
	public List<Sorter> getAllSorters(){
		return sorters;
	}
	
	public void addGroup(Group group){
		groups.add(group);
	}
	
	public List<Group> getAllGroups(){
		return groups;
	}
	public void resetAllSorter(){
		this.sorters.clear();
	}
}
